package net.app.zoneland.sentinel.controller;

import net.app.zoneland.sentinel.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description
 * @Author LENOVO
 * @CreateTime 2021/2/1 18:51
 * @Version: 1.0
 */
@RestController
public class SentinelController {

    @Autowired
    private TestService testService;

    @GetMapping("/testB")
    public String testB() {
        return "----------testB";
    }

    @GetMapping("/test")
    public String testA(String name) {
       return testService.sayHello(name);
    }
}
